package com.lagou.homework.stage02.module01.Task01.entity;

import java.io.Serializable;
import java.util.Date;

public class Employee implements Serializable {
    private int id;
    private String name;
    private double age;
    private String sex;
    private double salary;
    private Date empDate;
    private int dId;
    private String deptName;
    public Employee(){}

    public Employee(int id, String name, double age, String sex, double salary, Date empDate, int dId, String deptName) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.salary = salary;
        this.empDate = empDate;
        this.dId = dId;
        this.deptName = deptName;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getAge() {
        return age;
    }

    public void setAge(double age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public Date getEmpDate() {
        return empDate;
    }

    public void setEmpDate(Date empDate) {
        this.empDate = empDate;
    }

    public int getdId() {
        return dId;
    }

    public void setdId(int dId) {
        this.dId = dId;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", sex='" + sex + '\'' +
                ", salary=" + salary +
                ", empDate=" + empDate +
                ", dId=" + dId +
                ", deptName='" + deptName + '\'' +
                '}';
    }
}
